src = $(wildcard ./src/*.c)
obj = $(patsubst ./src/%.c, ./obj/%.o, $(src)) 
inc_path=./inc
ALL:server

server:$(obj)
	gcc $^ -pthread -o $@
$(obj):./obj/%.o:./src/%.c
	gcc -c $< -o $@ -I $(inc_path)

clean:
	-rm -rf $(obj) server
.PHONY:clean
